#ifndef FORMATMANAGER_H
#define FORMATMANAGER_H

#include "format.h"

class FormatManager
{
public:
    static int load();
    static Format *getFormatForSuffix(QString suffix);
    static Format *getFormatForName(QString name);

private:
    static std::map<QString, Format *> formats_;
    static std::map<QString, Format *> suffixes_;
};

#endif // FORMATMANAGER_H
